package lacus.wd_cinema.repository;

import lacus.wd_cinema.entity.LogRecord;
import lacus.wd_cinema.entity.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface LogRecordRepository extends JpaRepository<LogRecord, Integer> {

    List<LogRecord> findAllByRole(User.Role role);
}
